package com.endpoint.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 小说类别表
 * </p>
 *
 * @author Jack_Li
 * @since 2024-07-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BookCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 作品方向，0：男频，1：女频'
     */
    private Boolean workDirection;

    /**
     * 分类名
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Long updateUserId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
